/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

input, select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* 导航栏 */
.nav {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav img {
    height: 40px;
    margin-right: 10px;
    border-radius: 4px;
}

.nav span {
    font-size: 1.2em;
    font-weight: bold;
}

.nav .space {
    flex: 1;
}

.nav a {
    padding: 8px 15px;
    border-radius: 4px;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.nav a:hover, .nav a.active {
    background-color: rgba(255,255,255,0.1);
}

/* 编辑容器 */
.edit-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 编辑头部 */
.edit-header {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.edit-header input {
    flex: 1;
    min-width: 300px;
    font-size: 1.5em;
    padding: 10px 15px;
}

.edit-header .actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.edit-header select {
    min-width: 120px;
}

.edit-header button {
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
}

#saveDraftBtn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

#saveDraftBtn:hover {
    background-color: #e0e0e0;
}

#publishBtn {
    background-color: #4a90e2;
    color: white;
}

#publishBtn:hover {
    background-color: #3a80d2;
}

/* 编辑器 */
.editor-container {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* 状态栏 */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #777;
    font-size: 0.9em;
}

#saveStatus.saved {
    color: #4a90e2;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .edit-header {
        flex-direction: column;
    }
    
    .edit-header input {
        min-width: auto;
    }
    
    .edit-header .actions {
        justify-content: space-between;
    }
}